package ua.races.dom.docBuilder;

import org.jdom.Document;

public class Director {
  private DocumentBuilder documentBuilder;

    public void setDocumentBuilder(DocumentBuilder documentBuilder) {
        this.documentBuilder = documentBuilder;
    }

    public Document getDocument() {
    return documentBuilder.getDocument();
  }

  public void constructDocument() {

     documentBuilder.createNewDocument();
     documentBuilder.build();

  }
}
